package com.wfs.spring.thread.t232;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @Auther: wfs
 * @Date: 2019/6/12 20:44
 * @Description:
 */
public class AddCountThread extends Thread {
    private AtomicInteger count=new AtomicInteger();

    @Override
    public void run() {
     for (int i=0;i<=10000;i++){
         System.out.println(" count:"+count.incrementAndGet());
     }
    }
}
